package com.whnk.common.pm.constants;

/**
 * 用户常量信息
 * 
 * @author whnk
 */
public class EmpConstants {
	/** 正常状态 */
	public static final String NORMAL = "0";

	/** 异常状态 */
	public static final String EXCEPTION = "1";

	/** 证件号码是否唯一的返回结果码 */
	public final static String EMP_ID_UNIQUE = "0";
	public final static String EMP_ID_NOT_UNIQUE = "1";
	
	/** 证件号码在基本信息表中是否存在的返回结果码 */
	public final static String EMP_BASE_EXIST = "0";
	public final static String EMP_BASE_NOT_EXIST = "1";
	
	/** 证件号码在附件信息表是否存在的返回结果码 */
	public final static String EMP_FILE_EXIST = "0";
	public final static String EMP_FILE_NOT_EXIST = "1";
	
	/** 身份证号码长度限制 */
	public final static String EMP_ID_CARD_LENGTH = "18";

	/** 手机号码是否唯一的返回结果 */
	public final static String EMP_TEL_UNIQUE = "0";
	public final static String EMP_TEL_NOT_UNIQUE = "1";

	/** e-mail 是否唯一的返回结果 */
	public final static String EMP_EMAIL_UNIQUE = "0";
	public final static String EMP_EMAIL_NOT_UNIQUE = "1";

	/** 时间段限制 */
	public final static String EMP_DATE_OVERFLAP = "0";
	public final static String EMP_DATE_NOT_OVERFLAP = "1";

	/**
	 * 手机号码格式限制
	 */
	public static final String MOBILE_PHONE_NUMBER_PATTERN = "^0{0,1}(13[0-9]|15[0-9]|14[0-9]|18[0-9])[0-9]{8}$";

	/**
	 * 邮箱格式限制
	 */
	public static final String EMAIL_PATTERN = "^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?";
	
	/**
	 * 周
	 */
	public static final String[] WEEK = {"日","一","二","三","四","五","六"};
}
